<?php
	require_once("./functions.php");
	require_once("./template.class.php");
	require_once("./pclzip.lib.php");
	require_once("../Security/settings.php");
	if(file_exists("../Languages/".USE_LANG."/")){
		$language = simplexml_load_file("../Languages/".USE_LANG."/strings.xml");
		require_once("../Languages/".USE_LANG."/arrays.php");
	}
	
	if (SHOW_SYSTEMFILES == false){
		require_once("../Security/restrictions.php");
	}
	
	require_once("../Security/master_restrictions.php");
	
	if (file_exists("ViewerPlugins/".$_GET["plugin"].".php") AND !is_restricted($_GET["file"])){
		include("ViewerPlugins/".$_GET["plugin"].".php");
	} else {
		echo $language->errors->value_3;
	}
?>